package com.twu.biblioteca;

import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: anubhav
 * Date: 1/4/14
 * Time: 6:30 PM
 * To change this template use File | Settings | File Templates.
 */
public class AvailibilityChecker {

    private Map<String, LibraryItem> availableItems;

    public AvailibilityChecker(Map<String, LibraryItem> availableItems) {
        this.availableItems = availableItems;
    }

    public boolean checkForItem(String itemName) {

        return availableItems.containsKey(itemName);
    }


}
